﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using System.Data.SqlClient;
using DAL.Entities;

namespace DAL.NewFolder1
{
    public class chatlieu_DAL: BaseDAL, UTL.IBaseDAL
    {
        public int Count()
        {
            throw new NotImplementedException();
        }

        public DataTable Select()
        {
            string sql = @" SELECT * FROM CHAT_LIEU";
            return ExecuteQuery(sql);
        }

        public DataTable load()
        {
            string sql = @" SELECT ten_mon FROM loai_mon a, mon b where a.ma_loai = b.ma_loai";
            return ExecuteQuery(sql);
        }

        public DataTable Select1()
        {
            string sql = @" SELECT * FROM loai_mon";
            return ExecuteQuery(sql);
        }
        public DataTable Select_()
        {
            string sql = @" SELECT * FROM ban";
            return ExecuteQuery(sql);
        }

        public DataTable Select(object obj)
        {
            throw new NotImplementedException();
        }

        public object GetByKey(object key)
        {
            throw new NotImplementedException();
        }

        public bool Delete(string id)
        {
            throw new NotImplementedException();
        }

        public bool Insert(object obj)
        {
            throw new NotImplementedException();
        }

        public bool Update(object obj)
        {
            throw new NotImplementedException();
        }

        public DataTable Search(string name)
        {
            throw new NotImplementedException();
        }
    }
}
